import request from '@/utils/request'

// 全部演出场地
export const getAllVenues = () => {
  return request.get('/venues/getAll')
}

// 演出场地ById
export const getVenuesById = (performId) => {
  return request.get(`/venues/getByPerformId/${performId}`, {})
}
// 分页获取场馆
export const getPage = (page, size) =>
  request.get(`/venues/getPage/${page}/${size}`)
// 创建场馆
export const create = (obj) => request.post('/venues/create', obj)
//删除场馆
export const deletebyid = (id) => request.post(`/venues/delete/${id}`)
//修改场馆
export const updatebyid = (obj) => request.post('/venues/update', obj)
